package com.rockfalldefence.sw.embark.client.page;

import net.binarymuse.gwt.client.ui.wizard.WizardPage;

import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Widget;
import com.rockfalldefence.sw.embark.client.RDEmbarkContext;

public class CalcoloImpattoPage extends WizardPage<RDEmbarkContext> {
	public static final PageID PAGEID = new PageID();
	private FlowPanel panel;
	
	
	public CalcoloImpattoPage() {
		panel = new FlowPanel();
	    panel.add(new HTML("<h1>Calcolo Forza d'Impatto</h1>"));
	    

	    Image img = new Image("images/forza_impatto.png"); 
	    HorizontalPanel hp = new HorizontalPanel();
	    hp.add(img);
	    FlexTable t = new FlexTable();
	    t.setWidget(0, 0, new HTML("<h2 align='center'>Forza d'Impatto Massima</h2>"));
	    t.setHTML(1, 0, "<h2 align='center'>8132 kN</h2>");
	    hp.add(t);
	    panel.add(hp);
	    
	}


	@Override
	public Widget asWidget() {
		
		return panel;
	}

	@Override
	public PageID getPageID() {
		return PAGEID;
	}

	@Override
	public String getTitle() {
		return "Forza d'Impatto";
	}

}
